type Message_type = ''
export interface Message<T extends Message_type> {
    type: T;
    data: T extends 'text'? string : undefined;
}